package firstfactory.impl;

public class MarkPersonFactory {
    public Object doMarkPerson(String nationality) {
        if ("China".equals(nationality)) {
            return new ChineseImpl();
        }else if ("Japan".equals(nationality)){
            return new JapanImpl();
        }else {
            return null;
        }
    }
}
